<template>
    <el-config-provider :locale="locale">
        <RouterView />
    </el-config-provider>
</template>
<script setup lang="ts">
import { ref, computed } from "vue";
import { RouterLink, RouterView } from "vue-router";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import en from "element-plus/es/locale/lang/en";
import { useStore } from "@/stores";
const store = useStore();
// 语言包
const locale = computed(() => {
    return store.language === "zh" ? zhCn : en;
});
</script>

<style scoped></style>
